<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>
<style>
#mw_mobile .fregister {
    list-style:none;
    margin:5px;
    padding:5px;
    box-shadow: 0 1px #EBEBEB;
    border-radius: 3px;
    border: 1px solid;
    border-color: #E5E5E5 #D3D3D3 #B9C1C6;
    background-color:#fff;
}
</style>

<div class="fregister">
<form name="fregister" method="post" onsubmit="return fregister_submit(this);" autocomplete="off">

<div style="margin:10px;">
    <b>회원가입약관</b>
    <div style="margin:5px 0 7px 0;"><textarea style="width:98%; height:100px;" readonly><?=get_text($config['cf_stipulation'])?></textarea></div>
    <div>
        <input type="radio" value="1" name="agree" id="agree11">&nbsp;<label for="agree11">동의합니다.</label>
        <input type="radio" value="0" name="agree" id="agree10">&nbsp;<label for="agree10">동의하지 않습니다.</label>
    </div>
</div>

<div style="margin:10px;">
    <b>개인정보취급방침</b>
    <div style="margin:5px 0 7px 0;"><textarea style="width:98%; height:100px;" readonly><?=get_text($config['cf_privacy'])?></textarea></div>
    <div>
        <input type="radio" value="1" name="agree2" id="agree21">&nbsp;<label for="agree21">동의합니다.</label>
        <input type="radio" value="0" name="agree2" id="agree20">&nbsp;<label for="agree20">동의하지 않습니다.</label>
    </div>
</div>

<div style="text-align:center; margin-top:30px; height:100px;">
    <input type="submit" class="btn btn-default btn-sm" value="회원가입">
</div>

</form>
</div> <!-- class="fregister" -->

<script>
function fregister_submit(f) 
{
    if ($("input[name='agree']:checked").val() != "1") {
        alert("회원가입약관의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
        return false;
    }

    if ($("input[name='agree2']:checked").val() != "1") {
        alert("개인정보취급방침의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
        return false;
    }

    f.action = "./register_form.php";
    return true;
}
</script>

